package cn.fsd.vo;

import cn.fsd.domain.Purchase_bill;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BillBean extends Purchase_bill {
    //商品表
    private Long cost;//单价,成本价
    //购货表
    private Integer settle_num;//结算数量
    private Long settle_amount;//结算金额

    public BillBean(Purchase_bill purchase_bill) {
        super(purchase_bill.getBill_id(),purchase_bill.getStoreroom_id(),purchase_bill.getCommodity_id(),purchase_bill.getCommodity_name(),purchase_bill.getSupplier_id(),purchase_bill.getPurchase_num(),purchase_bill.getReturn_num(),purchase_bill.getPurchase_date(),purchase_bill.getPurchase_status());
    }
}
